{% extends 'user/login_regist_bg.html' %}
{% block main %}
    <form action="" method="post">
        {% csrf_token %}
    <div class="form-group">
            {{ form.oldpassword.label_tag }}
            {{ form.oldpassword }}
        </div>
        <div class="form-group">
            {{ form.password.label_tag }}
            {{ form.password }}
        </div>
        <div class="form-group">
            {{ form.password2.label_tag }}
            {{ form.password2 }}
            {% if form.password2.errors %}
                {% for error in form.password2.errors %}
                    <p class="text-danger">{{ error }}</p>
                {% endfor %}
            {% endif %}
        </div>

        <div class="form-group">
            <button type="submit" class="btn btn-default">修改</button>
            <input type="hidden" name="back" value="{{ request.GET.back }}">
        </div>

    </form>

{% endblock %}
